package com.Tokiu.Service;

import com.Tokiu.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Account implements AccountInter{

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public void transfer(String out, String in, Double money) {
        accountMapper.inMoney(in,money);
        accountMapper.outMoney(out,money);
    }
}
